<?php



namespace app\common\logic\cloud;

use app\common\logic\cloud\BaseCloudLogic;



class PhpCodeCloudLogic extends BaseCloudLogic{

    

    public function getPhpCodeV($param){

        return $this->request('/platform/api/getPhpCodeV',$param);

    }

    

    public function getPhpCodeFile($param){

        $dir = root_path().'phpCode/'.$param['iden'].'/'.$param['v'];

        if(!is_dir($dir)){

            mkdir($dir,0777,true);

        }

        $file = $dir.'/'.$param['v'].'.zip';

        return $this->download('/platform/api/downLoadPhpCode',$param,$file);

    }

    

    public function overPhpUpdate($param){

        return $this->request('/platform/api/overPhpCode',$param);

    }

    

}